import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import AutoImport from "unplugin-auto-import/vite";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [],
      imports: ["vue", "vue-router"], // 自动导入第三方
      dirs: [], // 自动导入自定义
      dts: "./src/typings/auto-imports.d.ts", // 将上方的导入定义到对应的ts
    }),
  ],
});
